﻿capital = 284

oob = "NZL_1936"
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "NZL_1936_air_bba"
	else = {
		set_air_oob = "NZL_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			naval_bomber1 = 1

		}
	}
}

# Starting tech
set_stability = 0.8
set_war_support = 0.3

set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_trucks = 1
	gw_artillery = 1
	tech_support = 1		
	tech_engineers = 1
	tech_recon = 1
	trench_warfare = 1
	fleet_in_being = 1
}
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
		transport = 1
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_torpedo = 1
		basic_depth_charges = 1
		mtg_transport = 1
	}
}

recruit_character = NZL_michael_joseph_savage
recruit_character = NZL_sidney_holland
recruit_character = NZL_john_ormond
recruit_character = NZL_elsie_farrelly
recruit_character = NZL_bernard_freyberg
recruit_character = NZL_robert_row
recruit_character = NZL_william_stevens
recruit_character = NZL_edmund_rupert_drummond
recruit_character = NZL_peter_phipps
recruit_character = NZL_r_a_cochrane
recruit_character = NZL_l_p_peterson
recruit_character = NZL_j_c_nichols
recruit_character = NZL_n_weir
recruit_character = NZL_j_e_duigan
recruit_character = NZL_edward_puttick
recruit_character = NZL_norris_stephen_falla
recruit_character = NZL_trevor_handley
recruit_character = NZL_keith_j_holyoake
recruit_character = NZL_a_j_stallworthy
recruit_character = NZL_eric_prendergast
recruit_character = NZL_arthur_dawes
recruit_character = NZL_william_sinclair_burgess
recruit_character = NZL_h_e_horan
recruit_character = NZL_h_d_mcgregor
recruit_character = NZL_w_h_stratton
recruit_character = NZL_a_e_davy
recruit_character = NZL_walter_nash
recruit_character = NZL_w_a_veitch_milne
recruit_character = NZL_peter_fraser


if = {
	limit = { has_dlc = "Together for Victory" }

	add_to_tech_sharing_group = commonwealth_research
}

1939.1.1 = {

	add_political_power = 1198
	add_command_power = 100
	oob = "NZL_1939"
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "NZL_1939_air_bba"
		else = {
			set_air_oob = "NZL_1939_air_legacy"
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
			set_naval_oob = "NZL_1939_naval_mtg"
		else = {
			set_naval_oob = "NZL_1939_naval_legacy"
		}
	}
	
	if = {
		limit = { has_dlc = "Together for Victory" }
		complete_national_focus = NZL_army_reforms
		complete_national_focus = NZL_charlton_automatic_rifle
		complete_national_focus = NZL_domestic_arms_industry
		complete_national_focus = NZL_expand_the_nzpaf
		complete_national_focus = NZL_form_the_rnzaf
		complete_national_focus = NZL_national_roads_board
		complete_national_focus = NZL_new_zealand_steel
		complete_national_focus = NZL_taranaki_oil
		complete_national_focus = NZL_bureau_of_industry
        complete_national_focus = NZL_the_first_labor_government
        complete_national_focus = NZL_ratana_alliance
        complete_national_focus = NZL_maori_affairs_act
        complete_national_focus = NZL_social_security_act
        complete_national_focus = NZL_strengthen_the_commonwealth		
		
		else = {
			#generic focuses
			complete_national_focus = army_effort
			complete_national_focus = equipment_effort
			complete_national_focus = motorization_effort
			complete_national_focus = aviation_effort
			complete_national_focus = naval_effort
			complete_national_focus = large_navy
			complete_national_focus = industrial_effort
			complete_national_focus = construction_effort
			complete_national_focus = production_effort
		}
	}

	add_ideas = {
		#laws
		low_economic_mobilisation
		limited_conscription
	}

	
	set_technology = {
		fighter1 = 1
		early_bomber = 1
		tactical_bomber1 = 1
		interwar_artillery = 1
		interwar_antitank = 1
		infantry_weapons2 = 1
		support_weapons = 1
		support_weapons2 = 1

		#doctrines
		air_superiority = 1
		grand_battle_plan = 1
		trench_warfare = 1
		fleet_in_being = 1
		battlefleet_concentration = 1
		submarine_operations = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		mechanical_computing = 1
		computing_machine = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		synth_oil_experiments = 1
		fuel_silos = 1
		oil_processing = 1
		improved_oil_processing = 1
		construction1 = 1
		construction2 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
	}
	if = {
		limit = {
			NOT = {
				has_dlc = "No Step Back"
			}
		}
		set_technology = {
			basic_light_tank = 1
			improved_light_tank = 1
			basic_medium_tank = 1
			basic_heavy_tank = 1
		}
	}
	if = {
		limit = {
			
			has_dlc = "No Step Back"
			
		}
		set_technology = {
			basic_light_tank_chassis = 1
			improved_light_tank_chassis = 1
			basic_medium_tank_chassis = 1
			basic_heavy_tank_chassis = 1
		}
	}
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		set_technology = {
			basic_destroyer = 1
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		set_technology = {
			basic_ship_hull_light = 1
			basic_ship_hull_cruiser = 1
		}
	}
}
set_politics = {
	ruling_party = democratic
	last_election = "1935.11.27"
	election_frequency = 36
	elections_allowed = yes
}
set_popularities = {
	democratic = 100
}

set_convoys = 70

1939.1.1 = {
	set_politics = {
		ruling_party = democratic
		last_election = "1938.10.15"
		election_frequency = 60
		elections_allowed = yes
	}

	# Didn't take office until '40, added for flavor
	promote_character = NZL_peter_fraser
	retire_character = NZL_michael_joseph_savage
	set_convoys = 80
}


### VARIANTS ###
# 1936 Start #
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	### Ship Variants ###
	create_equipment_variant = {
		name = "Leander Class"
		type = light_cruiser_1
		upgrades = {
			ship_reliability_upgrade = 2
			ship_engine_upgrade = 2
			ship_gun_upgrade = 2
			ship_anti_air_upgrade = 2
		}
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	# Light Cruisers #
	create_equipment_variant = {
		name = "Danae Class"
		type = ship_hull_cruiser_1
		name_group = NZL_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_torpedo_1
			rear_1_custom_slot = empty
		}
	}
}

# 1939 Start #
1939.1.1 = {
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		# Ship variants #
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		# Light Cruisers #
		create_equipment_variant = {
			name = "Leander Class"
			type = ship_hull_cruiser_2
			name_group = NZL_CL_HISTORICAL
			modules = {
				fixed_ship_battery_slot = ship_light_medium_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = cruiser_ship_engine_2
				fixed_ship_armor_slot = ship_armor_cruiser_1
				front_1_custom_slot = ship_anti_air_1
				mid_1_custom_slot = ship_torpedo_1
				mid_2_custom_slot = ship_airplane_launcher_1
				rear_1_custom_slot = ship_light_medium_battery_1
			}
		}
	}
}

1941.1.1 = {
    if = {
		limit = { has_dlc = "Together for Victory" }
	    complete_national_focus = NZL_2nzef
		complete_national_focus = NZL_arrest_pacifist_leaders
		complete_national_focus = NZL_transfer_the_new_zealand_division
		complete_national_focus = NZL_schofield_tank
		complete_national_focus = NZL_bomber_focus
		complete_national_focus = NZL_artillery_focus
		complete_national_focus = NZL_department_of_scientific_and_industrial_research
	}
}

1942.1.1 = {
    if = {
		limit = { has_dlc = "Together for Victory" }
	    complete_national_focus = NZL_wairarapa_sheep_farms
		complete_national_focus = NZL_form_the_rnzn
		complete_national_focus = NZL_coastal_defense
		complete_national_focus = NZL_defend_our_islands
		complete_national_focus = NZL_big_bob_tank
		complete_national_focus = NZL_industrial_conscription
	}
}

1944.1.1 = {
    if = {
		limit = { has_dlc = "Together for Victory" }
		complete_national_focus = NZL_the_manpower_act
		complete_national_focus = NZL_technology_sharing_with_britain
		complete_national_focus = NZL_heavy_bombers
		complete_national_focus = NZL_amend_the_maori_affairs_act
		complete_national_focus = NZL_expand_devonport_naval_base
		complete_national_focus = NZL_submarine_effort
		complete_national_focus = NZL_light_cruiser_effort
		complete_national_focus = NZL_think_big
	}
	set_technology = { #Code from 1944 - Downfall
		tech_trucks = 1
		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		decimetric_radar = 1
		improved_decimetric_radar = 1
		centimetric_radar = 1

		#industry
		excavation1 = 1
		excavation2 = 1
		excavation3 = 1

		#doctrine
		trench_warfare = 1
		grand_battle_plan = 1
		prepared_defense = 1
		grand_assault = 1
		infantry_offensive = 1

		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1

		fuel_silos = 1
		fuel_refining = 1
		fuel_refining2 = 1
		fuel_refining3 = 1

		synth_oil_experiments = 1
		oil_processing = 1
		rubber_processing = 1

		construction1 = 1
		construction2 = 1
		construction3 = 1

		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
		dispersed_industry4 = 1

		support_weapons = 1
		support_weapons2 = 1
		support_weapons3 = 1

		infantry_weapons_3 = 1

		improved_infantry_weapons = 1
		improved_infantry_weapons_2 = 1

		infantry_at = 1

		gw_artillery = 1
		artillery1 = 1
		artillery2 = 1
		artillery3 = 1
		#artillery4 = 1

		interwar_antiair = 1
		antiair1 = 1
		antiair2 = 1
		#antiair3 = 1

		interwar_antitank = 1
		antitank1 = 1
		antitank2 = 1
		antitank3 = 1
		#antitank4 = 1

		motorised_infantry = 1

		tech_mountaineers = 1
		tech_support = 1

		tech_engineers = 1
		tech_engineers2 = 1
		tech_engineers3 = 1

		tech_recon = 1
		tech_recon2 = 1
		tech_recon3 = 1

		tech_field_hospital = 1
		tech_field_hospital2 = 1

		tech_military_police = 1

		tech_maintenance_company = 1
		tech_maintenance_company2 = 1
		
		basic_train = 1
	}
}

1945.1.1 = {
    if = {
		limit = { has_dlc = "Together for Victory" }
	    complete_national_focus = NZL_capital_ship_effort
		complete_national_focus = NZL_project_seal
		complete_national_focus = NZL_expand_the_university_of_auckland
		complete_national_focus = NZL_long_range_patrol
	}
}